<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>JSDoc: Source: components/appLoading/appLoading.vue</title>

    <script src="scripts/prettify/prettify.js"> </script>
    <script src="scripts/prettify/lang-css.js"> </script>
    <!--[if lt IE 9]>
      <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
    <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
</head>

<body>

<div id="main">

    <h1 class="page-title">Source: components/appLoading/appLoading.vue</h1>

    



    
    <section>
        <article>
            <pre class="prettyprint source linenums"><code>&lt;template>
&lt;transition name="fade">
    &lt;div class="app-loading" :style='{"background-color":"rgba(0,0,0,"+(backgroundColor+"")+")"}'>
        &lt;div class="app-loading-ceter">
            &lt;mu-circular-progress :size="55" :strokeWidth="4" color="rgba(255,255,255,.68)"/>
        &lt;/div>
    &lt;/div>
&lt;/transition>
&lt;/template>

&lt;script>
/**
 * loading模块 
 * @module components/appLoading
 * @requires muse-ui
 * @param {String|Number} backgroundColor=0 背景透明度0~1
 * @param {Number} timeLimit=10000 超时时间设置
 * @listens timeout 超时时触发
 * @example
 * &lt;app-loading v-if="loading" @timeout="setLoading(false)">&lt;/app-loading>
 */
  export default {
    name: 'app-loading',
    data:function() {
      return {
      }
    },
    props:{
        backgroundColor:{
            'type':[String,Number],
            'default':'0'
        },
        timeLimit:{
            'type':Number,
            'default':10000
        }
    },
    mounted (){
       var vm=this
       setTimeout(function(){
           vm.$emit('timeout')
       },vm.timeLimit)
    }
  }
&lt;/script>

&lt;style>
    .app-loading{position: absolute;z-index: 999999;top: 0;bottom: 0;left: 0;right: 0;}
    .app-loading-ceter{position: absolute;top: 50%;left: 50%;-webkit-transform: translate(-50%,-50%);transform: translate(-50%,-50%);padding: 10px;background-color: rgba(0,0,0,.5);border-radius: 10px;width:75px;height:75px;box-shadow:3px 3px 3px rgba(150,150,150,.3);}
&lt;/style>
</code></pre>
        </article>
    </section>




</div>

<nav>
    <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-components_appCalendar.html">components/appCalendar</a></li><li><a href="module-components_appLoading.html">components/appLoading</a></li><li><a href="module-components_appUserBox.html">components/appUserBox</a></li><li><a href="module-components_editImage.html">components/editImage</a></li><li><a href="module-components_fileList.html">components/fileList</a></li><li><a href="module-components_menuNava_menuNava.html">components/menuNava/menuNava</a></li><li><a href="module-components_menuNava_menuNavaItem.html">components/menuNava/menuNavaItem</a></li><li><a href="module-components_myInputPage.html">components/myInputPage</a></li><li><a href="module-components_mySelectPage.html">components/mySelectPage</a></li><li><a href="module-components_myWebuploader.html">components/myWebuploader</a></li><li><a href="module-components_textImgBox.html">components/textImgBox</a></li><li><a href="module-components_timeline_timeline.html">components/timeline/timeline</a></li><li><a href="module-components_timeline_timelineItem.html">components/timeline/timelineItem</a></li><li><a href="module-components_vImg.html">components/vImg</a></li><li><a href="module-scripts_common.html">scripts/common</a></li><li><a href="module-scripts_configValid.html">scripts/configValid</a></li><li><a href="module-scripts_LunarCalendar.html">scripts/LunarCalendar</a></li><li><a href="module-scripts_vueMethods.html">scripts/vueMethods</a></li><li><a href="module-services.html">services</a></li><li><a href="module-services_AnniversaryService.html">services/AnniversaryService</a></li><li><a href="module-services_ArchiveService.html">services/ArchiveService</a></li><li><a href="module-services_BigEventService.html">services/BigEventService</a></li><li><a href="module-services_FamilyService.html">services/FamilyService</a></li><li><a href="module-services_UserService.html">services/UserService</a></li><li><a href="module-vuex-history.html">vuex-history</a></li><li><a href="module-vuex-loading.html">vuex-loading</a></li><li><a href="module-vuex-toast.html">vuex-toast</a></li></ul><h3>Namespaces</h3><ul><li><a href="Vue.html">Vue</a></li></ul>
</nav>

<br class="clear">

<footer>
    Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a> on Fri Jun 30 2017 09:20:36 GMT+0800 (中国标准时间)
</footer>

<script> prettyPrint(); </script>
<script src="scripts/linenumber.js"> </script>
</body>
</html>
